package gui;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.geom.GeneralPath;
import java.awt.geom.Path2D;
import java.awt.image.BufferedImage;

import javax.swing.JPanel;


public class HexPanel extends JPanel {
	
	Hex[][] map;
	
	public HexPanel(int width, int height) {
		
		map = new Hex[width][height];
		
		for(int i = 0; i < width; i++) {
			for(int j = 0; j < height; j++) {
				map[i][j] = new Hex(1);
			}
		}//makes random hexes and populates the map replace later
		
	}
	
	public void paint(Graphics g) {
		for(int i = 0; i < map.length; i++) {
			for(int j = 0; j < map[i].length; j++) {
//				g.drawImage(map[i][j].getImg(), 0, 0, this);
				System.out.println("x");
			}
		}
	}
	
	public void paintHex(Graphics g) {
		
	}
}
